<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>乐字节</title>
    <style>
        div {
            display: flex;
        }

        span {
            width: 200px;
            line-height: 50px;
            height: 50px;
            background-color: red;
        }
    </style>
</head>

<body>
    <div>
        <span>222</span>
    </div>
</body>
<script>
    var a = {
        name: 'luo',
        age: 18,
        love: {
            aa: 'fhdkj'
        }
    }
    Object.freeze(a);
    console.log(Object.isFrozen(a));
</script>


</html>